package org.gulugulubiao.controller;


import lombok.extern.slf4j.Slf4j;
import org.gulugulubiao.result.Result;
import org.gulugulubiao.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/tag")
@Slf4j
public class TagController {

    @Autowired
    private TagService tagService;

    /**
     *  查询tag列表
     */
    @GetMapping("")
    public Result getAllTags() {
        log.info("查询tag列表");
        return tagService.getAllTags();
    }



}
